﻿import request from '/@/utils/request';
enum Api {
  AddBusGoodSupplier = '/api/busGoodSupplier/add',
  DeleteBusGoodSupplier = '/api/busGoodSupplier/delete',
  UpdateBusGoodSupplier = '/api/busGoodSupplier/update',
  PageBusGoodSupplier = '/api/busGoodSupplier/page',
}

// 增加商品供货商
export const addBusGoodSupplier = (params?: any) =>
	request({
		url: Api.AddBusGoodSupplier,
		method: 'post',
		data: params,
	});

// 删除商品供货商
export const deleteBusGoodSupplier = (params?: any) => 
	request({
			url: Api.DeleteBusGoodSupplier,
			method: 'post',
			data: params,
		});

// 编辑商品供货商
export const updateBusGoodSupplier = (params?: any) => 
	request({
			url: Api.UpdateBusGoodSupplier,
			method: 'post',
			data: params,
		});

// 分页查询商品供货商
export const pageBusGoodSupplier = (params?: any) => 
	request({
			url: Api.PageBusGoodSupplier,
			method: 'post',
			data: params,
		});


